package com.xbb.entity;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xbb.entity.Services;
import com.xbb.entity.User;

public class ServicesComment{

    private static final long serialVersionUID = 1L;

    //  服务评价ID
    private Integer id;

    //  服务ID
    private Integer servicesId;

    //  用户ID
    private Integer userId;

    //  评价内容
    private String content;

    //  评价时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date creatTime;

    //  服务态度
    private String attitude;

    //  专业技能
    private String skills;

    //  工作效率
    private String working;

    private Services services;

    private User user;

    public void setId(Integer id){
        this.id = id;
    }

    public Integer getId(){
        return id;
    }

    public void setServicesId(Integer servicesId){
        this.servicesId = servicesId;
    }

    public Integer getServicesId(){
        return servicesId;
    }

    public void setUserId(Integer userId){
        this.userId = userId;
    }

    public Integer getUserId(){
        return userId;
    }

    public void setContent(String content){
        this.content = content;
    }

    public String getContent(){
        return content;
    }

    public void setCreatTime(Date creatTime){
        this.creatTime = creatTime;
    }

    public Date getCreatTime(){
        return creatTime;
    }

    public void setAttitude(String attitude){
        this.attitude = attitude;
    }

    public String getAttitude(){
        return attitude;
    }

    public void setSkills(String skills){
        this.skills = skills;
    }

    public String getSkills(){
        return skills;
    }

    public void setWorking(String working){
        this.working = working;
    }

    public String getWorking(){
        return working;
    }

    public Services getServices(){
        return services;
    }

    public void setServices(Services services){
        this.services = services;
    }

    public User getUser(){
        return user;
    }

    public void setUser(User user){
        this.user = user;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("servicesId", getServicesId())
            .append("userId", getUserId())
            .append("content", getContent())
            .append("creatTime", getCreatTime())
            .append("attitude", getAttitude())
            .append("skills", getSkills())
            .append("working", getWorking())
            .toString();
    }
}
